/**
 * Copyright (c) 2016-2019 优博信息科技 All rights reserved.
 *
 * https://www.jnyoubo.com
 *
 * 版权所有，侵权必究！
 */

package com.youbo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youbo.entity.BrdaEntity;
import com.youbo.form.CreateCardForm;
import com.youbo.form.HisUser;

/**
 * 用户
 *
 * @author macy
 */
public interface BrdaService extends IService<BrdaEntity> {


	HisUser queryHisUserByKh(String mzkh);


	HisUser queryHisUserByMedicalCardNumber(String medicalCardNumber);


	HisUser queryHisUserByIdcard(String idcard);

	HisUser queryHisUserById(String brid);




	/**
	 * 按照身份证查找 病人
	 * @param idCardNo 身份证号
	 * @return
	 */
	BrdaEntity queryIdCardNo(String idCardNo);
	/**
	 * 按照 电子卡号 查找病人
	 * @param medicalCardNumber
	 * @return
	 */
	BrdaEntity queryMedicalCardNumber(String medicalCardNumber);




	/**
	 * 创建电子卡号 病人档案
	 * @param createCardForm  病人基本信息
	 * @return
	 */
	boolean saveBrdn(CreateCardForm createCardForm);





	boolean updateBrzhCardNumbrer(Long brid,String medicalCardNumber);


}
